#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

private:
    void displayLabelText();
    void setPicture();
    void setOtherProperty();
    void setBuddyProperty();

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    // 重写 resizeEvent 方法
    void resizeEvent(QResizeEvent *event) override;

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
